﻿namespace wms_wpf.Extend
{
    public static class ExtendRandom
    {

        private static readonly Random random = new Random();
        private static int var;

        public static string CreateRandom()
        {
            string randomNum = random.Next(10, 100).ToString();
            string dateTimeStr = DateTime.Now.ToString("yyyyMMddHHmm");
            string result ="Lpn"+ dateTimeStr + randomNum + var;
            var++;
            return result;
        }


    }
}
